package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 股票价格
 * </p>
 *
 * @author stylefeng123
 * @since 2018-05-19
 */
@TableName("nb_gdprice")
public class Gdprice extends Model<Gdprice> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 代码
     */
    @TableField("g_dm")
    private String gDm;
    /**
     * 当前时间
     */
    @TableField("g_time")
    private Date gTime;
    /**
     * 最新价
     */
    @TableField("g_price")
    private Double gPrice;
    /**
     * 涨跌幅(%)
     */
    @TableField("g_zdf")
    private Double gZdf;
    
    @TableField("g_jqzdf")
    private Double gJqZdf;
    
    @TableField("g_zjgz_rank")
    private Integer gZjgzRank;
    
    @TableField("g_z_hs")
    private Double gZhs;
    

    
    public Integer getgZjgzRank() {
		return gZjgzRank;
	}

	public void setgZjgzRank(Integer gZjgzRank) {
		this.gZjgzRank = gZjgzRank;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getgDm() {
        return gDm;
    }

    public void setgDm(String gDm) {
        this.gDm = gDm;
    }

    public Date getgTime() {
        return gTime;
    }

    public void setgTime(Date gTime) {
        this.gTime = gTime;
    }

    public Double getgPrice() {
        return gPrice;
    }

    public void setgPrice(Double gPrice) {
        this.gPrice = gPrice;
    }

    public Double getgZdf() {
        return gZdf;
    }

    public void setgZdf(Double gZdf) {
        this.gZdf = gZdf;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    public Double getgJqZdf() {
		return gJqZdf;
	}

	public void setgJqZdf(Double gJqZdf) {
		this.gJqZdf = gJqZdf;
	}

	public Double getgZhs() {
		return gZhs;
	}

	public void setgZhs(Double gZhs) {
		this.gZhs = gZhs;
	}

	@Override
    public String toString() {
        return "Gdprice{" +
        "id=" + id +
        ", gDm=" + gDm +
        ", gTime=" + gTime +
        ", gPrice=" + gPrice +
        ", gZdf=" + gZdf +
        "}";
    }
}
